﻿<Window x:Class="MovieBuddy.Dialogs.EditImageMovieItemDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:MovieBuddy.Controls"
        Title="EditImageMovieItemDialog" Height="194" Width="325" ResizeMode="CanMinimize" Icon="/MovieBuddy;component/resources/movieBuddy.png">
    <Grid Margin="0,0,0,0">
        <Grid Height="28" VerticalAlignment="Top">
            <Label Content="Name:" HorizontalAlignment="Left" VerticalAlignment="Top" />
            <TextBox Margin="91,3,0,0" Name="nameBox" Height="23" VerticalAlignment="Top" />
        </Grid>
        <Grid Margin="0,28,0,0" Height="90" VerticalAlignment="Top">
            <Label Content="Image:" Height="28" HorizontalAlignment="Left" VerticalAlignment="Top" />
            <Controls:FilePicker Margin="91,3,0,0" x:Name="imageFilePicker" AllowUrl="True" VerticalAlignment="Top" FileUpdated="ImagePicked" IsForImages="True" />
            <Image Height="54" HorizontalAlignment="Left" Margin="91,30,0,0" Name="imagePreview" Stretch="Fill" VerticalAlignment="Top" Width="69" />
        </Grid>
        <Button Content="Cancel" Name="cancelButton" HorizontalAlignment="Right" Margin="0,0,10,8" Width="75" Click="CancelButtonClick" Height="20" VerticalAlignment="Bottom"/>
        <Button Content="Save" Name="saveButton" HorizontalAlignment="Right" Margin="0,0,90,8" VerticalAlignment="Bottom" Width="75" Click="SaveButtonClick"/>
    </Grid>
</Window>
